package com.tianji.api.client.remark;

import com.tianji.api.client.remark.fallback.RemarkClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Set;

@FeignClient(value = "remark-service", fallbackFactory = RemarkClientFallback.class)
public interface RemarkClient {


    /**
     * @param bizIds 回答表IDs
     * @return 获取当前用户点赞了哪个回答表ID
     */
    @GetMapping("likes/list")
    Set<Long> getLikesStatusByBizIds(@RequestParam("bizIds") List<Long> bizIds);
}
